.agentCard {
  position: relative;
  height: 100%;
  transition: all 0.3s;

  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

.cardContent {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.avatarContainer {
  flex-shrink: 0; // 防止头像被压缩
  width: 64px;
  height: 64px;
}

.avatar {
  object-fit: cover; // 确保图片比例正确
  border-radius: 50%;
}

.infoContainer {
  flex: 1;
  min-width: 0; // 确保文本可以正确换行
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.name {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; // 最多显示两行
  -webkit-box-orient: vertical;
  line-height: 1.5;
}

.tag {
  margin-left: 8px;
  flex-shrink: 0;
}

.description {
  margin: 0;
  font-size: 14px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; // 最多显示两行
  -webkit-box-orient: vertical;
  line-height: 1.5;
}

.hotBadge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ff4d4f;
  color: white;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 0 4px 0 4px;
  display: flex;
  align-items: center;
  gap: 4px;

  svg {
    font-size: 12px;
  }
}
